/** 
 * Copyright 2010 Erlacher Felix, Estgfaeller Wolfgang, Ferula Patrick
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package at.socialconference.inter.connection.protocol;

public class SocketProtocol {
	public final static String CMD_LOGIN = "LOGIN";
	public static final String CMD_QRCODE = "QRCODE";
	public static final String CMD_GOODBYE = "GOODBYE";
	public static final String CMD_CONFERENCENOW = "GETMYCONFERENCE";
	public static final String CMD_LOGOUT = "LOGOUT";
	public static final String CMD_GETUSER = "GETUSER";
	public static final String CMD_REGISTER = "REGISTER";
	public static final String CMD_SEARCHUSER = "SEARCHUSER";
	public static final String CMD_FRIENDREQUEST = "FRIENDREQUEST";
	public static final String CMD_ACCEPT_FRIENDREQUEST = "ACCEPTFRIENDREQUEST";
	public static final String CMD_REJECT_FRIENDREQUEST = "REJECTFRIENDREQUEST";
	public static final String CMD_CHECKFRIENDSTATUS = "CHECKFRIENDSTATUS";
	public static final String CMD_ADDTWITTERTOKENS = "ADDTWITTERTOKENS";
	public static final String CMD_GETTWITTERTOKENS = "GETTWITTERTOKENS";
	public static final String CMD_GETFRIENDREQUESTS = "GETFRIENDREQUESTS";
	public static final String CMD_GETCONFERENCES = "GETCONFERENCES";
	public static final String CMD_UPDATE_OBJECT = "UPDATEOBJECT";
	public static final String CMD_INSERT_OBJECT = "INSERTOBJECT";
	public static final String CMD_DELETE_OBJECT = "DELETEOBJECT";
	public static final String CMD_PARTICIPATESCHECK = "PARTICIPATESTO";
	public static final String CMD_ENROLLCONFERENCE = "ENROLLCONFERENCE";
	public static final String CMD_GETPLACES = "GETPLACES";
	public static final String CMD_GETTALKS = "GETTALKS";
	
	public static final int OK = 1;

	public static final int RESP_WRONG_PW = 101;
	public static final int RESP_NO_LOGIN = 102;
	public static final int RESP_WRONG_INPUT = 103;
	public static final int RESP_SESSION_CREATION_FAILED = 104;

	public static final int RESP_QR_NOTHING = 200;
	public static final int RESP_QR_TALK = 203;
	public static final int RESP_QR_ROOM = 202;
	public static final int RESP_QR_PEOPLE = 201;
	public static final int RESP_QR_CONFERENCE = 205;
	
	public static final int RESP_DUPLOGIN = 301;
	public static final int RESP_NOFIRSTNAME = 302;
	public static final int RESP_NOLASTNAME = 303;
	public static final int RESP_NOUSERNAME = 304;
	public static final int RESP_NOPASSWORD = 305;


	public static final int RESP_FSTATUS_NOFRIENDSHIP = 400;
	public static final int RESP_FSTATUS_PENDING = 401;
	public static final int RESP_FSTATUS_FRIEND = 402;
	public static final int RESP_FSTATUS_YOURSELF = 403;
	
	public static final int RESP_WRONG_OBJECT = 501;

	public static final int RECONNECT_TRIES = 3;
	
	public static final int RESP_ALREADYENROLLED = 601;
	
	public static final int RESP_FAILURE = -1;
	



}
